#!/bin/bash
# Copyright (c): 2012-2019, Huawei Tech. Co., Ltd.
set -e

PKG_FILE=dmlc-core-v0.5.tar.gz
SOURCE_DIR=dmlc-core
if [ -d ${SOURCE_DIR} ]; then
    rm -rf ${SOURCE_DIR}
fi
mkdir ${SOURCE_DIR}
tar -zxf ${PKG_FILE} -C ${SOURCE_DIR} --strip-components 1